package com.ruoyi.baselibrary.infobaseindex.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.baselibrary.infobaseindex.mapper.InfoBaseIndexDetailMapper;
import com.ruoyi.baselibrary.infobaseindex.domain.InfoBaseIndexDetail;
import com.ruoyi.baselibrary.infobaseindex.service.IInfoBaseIndexDetailService;

/**
 * 基础库-指标库-指标详情Service业务层处理
 *
 * @author ruoyi
 * @date 2022-01-17
 */
@Service
public class InfoBaseIndexDetailServiceImpl implements IInfoBaseIndexDetailService {
    @Autowired
    private InfoBaseIndexDetailMapper infoBaseIndexDetailMapper;

    /**
     * 查询基础库-指标库-指标详情
     *
     * @param id 基础库-指标库-指标详情主键
     * @return 基础库-指标库-指标详情
     */
    @Override
    public InfoBaseIndexDetail selectInfoBaseIndexDetailById(Long id) {
        return infoBaseIndexDetailMapper.selectInfoBaseIndexDetailById(id);
    }

    /**
     * 查询基础库-指标库-指标详情列表
     *
     * @param infoBaseIndexDetail 基础库-指标库-指标详情
     * @return 基础库-指标库-指标详情
     */
    @Override
    public List<InfoBaseIndexDetail> selectInfoBaseIndexDetailList(InfoBaseIndexDetail infoBaseIndexDetail) {
        return infoBaseIndexDetailMapper.selectInfoBaseIndexDetailList(infoBaseIndexDetail);
    }

    /**
     * 新增基础库-指标库-指标详情
     *
     * @param infoBaseIndexDetail 基础库-指标库-指标详情
     * @return 结果
     */
    @Override
    public int insertInfoBaseIndexDetail(InfoBaseIndexDetail infoBaseIndexDetail) {
        return infoBaseIndexDetailMapper.insertInfoBaseIndexDetail(infoBaseIndexDetail);
    }

    /**
     * 修改基础库-指标库-指标详情
     *
     * @param infoBaseIndexDetail 基础库-指标库-指标详情
     * @return 结果
     */
    @Override
    public int updateInfoBaseIndexDetail(InfoBaseIndexDetail infoBaseIndexDetail) {
        return infoBaseIndexDetailMapper.updateInfoBaseIndexDetail(infoBaseIndexDetail);
    }

    /**
     * 批量删除基础库-指标库-指标详情
     *
     * @param ids 需要删除的基础库-指标库-指标详情主键
     * @return 结果
     */
    @Override
    public int deleteInfoBaseIndexDetailByIds(Long[] ids) {
        return infoBaseIndexDetailMapper.deleteInfoBaseIndexDetailByIds(ids);
    }

    /**
     * 删除基础库-指标库-指标详情信息
     *
     * @param id 基础库-指标库-指标详情主键
     * @return 结果
     */
    @Override
    public int deleteInfoBaseIndexDetailById(Long id) {
        return infoBaseIndexDetailMapper.deleteInfoBaseIndexDetailById(id);
    }
}
